{layout name="index/layout" /}        <!--content-->
<div class="log">
    <div class="clear"></div>
    <div class="query">
        <h5>登录日志</h5>
        <div class="form_search">
            <form action="log.html" method="post">
                <div>
                    <label for="start_date">开始日期：</label>
                    <input id="start_date" type="text" name="start_date" value="{$date.start_date ?? ''}" readonly/>
                </div>
                <div>
                    <label for="end_date">结束日期：</label>
                    <input id="end_date" type="text" name="end_date" value="{$date.end_date ?? ''}" readonly/>
                </div>
                <div>
                    <input id="submit_search" class="submit_search" type="submit" value="搜索">
                    <input class="submit_search" type="button" value="刷新" onclick="location.reload()">
                    <span>{$ps ?? ''}</span>
                </div>
            </form>
        </div>
        <div class="table">
            <table>
                <tr>
                    <th>时间</th>
                    <th>IP</th>
                    <th>浏览器</th>
                    <th>操作系统</th>
                    <th>国家</th>
                    <th>省份</th>
                    <th>城市</th>
                    <th>行政区</th>
                    <th>运营商</th>
                </tr>
                {if $logs->all() neq null}
                {volist name='logs' id='log'}
                <tr class="table_query">
                    <td>{$log.time|date="Y-m-d H:i:s",###}</td>
                    <td>{$log.ip}</td>
                    <td>{$log.browser}</td>
                    <td>{$log.os}</td>
                    <td>{$log.country}</td>
                    <td>{$log.province}</td>
                    <td>{$log.city}</td>
                    <td>{$log.district}</td>
                    <td>{$log.carrier}</td>
                </tr>
                {/volist}
                {if $logs->render() eq null}
                {else}
                <tr class="table_query">
                    <td colspan="9">{$logs->render()}</td>
                </tr>
                {/if}
                {else}
                <tr>
                    <td colspan="9" class="table_not">没有查到登录信息</td>
                </tr>
                {/if}
            </table>
        </div>
    </div>
</div>
<div class="clear"></div>
<script>
    var action = document.getElementById('log');
    action.className = 'action';
</script>